local base = require 'ui_emu.base'
local SelectableItem = base.SelectableItem

---@class NChess.PieceItem: SelectableItem
---@field public xPos integer
---@field public yPos integer
local PieceItem = SelectableItem:subclass("NChess.PieceItem")

-- id为y*10+x
---@class NChess.PointItem: SelectableItem
---@field public xPos integer
---@field public yPos integer
local PointItem = SelectableItem:subclass("NChess.PointItem")

function PointItem:initialize(scene, id)
  SelectableItem.initialize(self, scene, id)
  self.enabled = true
end

return {
  Piece = PieceItem,
  Point = PointItem,
}

